/*
 * Amazon Software Tecnologia
 * http://www.amazon-software.net
 */
package tv.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;


/**
 * DOCUMENT ME!
 *
 * @author $Author$
 * @version $Revision$
 */
@Entity
@Table(name = "clientes")
public class Cliente implements Serializable
{
   @OneToMany(mappedBy = "cliente", fetch = FetchType.LAZY)
   private List<Compra> compras = new ArrayList<Compra>(0);
   @Id
   @GeneratedValue(strategy = GenerationType.AUTO)
   @Column(name = "cod_cliente")
   private Long codCliente;
   @Column(name = "login_cliente")
   private String login;
   @Column(name = "nome_cliente")
   private String nome;
   @Column(name = "pass_cliente")
   private String password;

   /**
    * DOCUMENT ME!
    *
    * @return
    */
   public Long getCodCliente()
   {
      return codCliente;
   }

   /**
    * DOCUMENT ME!
    *
    * @return
    */
   public List<Compra> getCompras()
   {
      return compras;
   }

   /**
    * DOCUMENT ME!
    *
    * @return
    */
   public String getLogin()
   {
      return login;
   }

   /**
    * DOCUMENT ME!
    *
    * @return
    */
   public String getNome()
   {
      return nome;
   }

   /**
    * DOCUMENT ME!
    *
    * @return
    */
   public String getPassword()
   {
      return password;
   }

   /**
    * DOCUMENT ME!
    *
    * @param codCliente
    */
   public void setCodCliente(Long codCliente)
   {
      this.codCliente = codCliente;
   }

   /**
    * DOCUMENT ME!
    *
    * @param compras
    */
   public void setCompras(List<Compra> compras)
   {
      this.compras = compras;
   }

   /**
    * DOCUMENT ME!
    *
    * @param login
    */
   public void setLogin(String login)
   {
      this.login = login;
   }

   /**
    * DOCUMENT ME!
    *
    * @param nome
    */
   public void setNome(String nome)
   {
      this.nome = nome;
   }

   /**
    * DOCUMENT ME!
    *
    * @param password
    */
   public void setPassword(String password)
   {
      this.password = password;
   }
}
